package com.blockchain.securewallet.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.blockchain.securewallet.R;
import com.blockchain.securewallet.model.db.BlockAddress;

import java.util.List;

import butterknife.ButterKnife;

public class TransactionRecoderAdapter extends RecyclerView.Adapter<TransactionRecoderAdapter.TransationRecoderItem>{

    private final static String TAG = "CoinWalletAdapter";

    private final LayoutInflater mLayoutInflater;
    private Context context;

    private List<BlockAddress> addresses = null;



    public TransactionRecoderAdapter(Context context, List<BlockAddress> addresses) {
        this.context = context;
        mLayoutInflater = LayoutInflater.from(context);
        this.addresses = addresses;
    }

    public void setAddresses(List<BlockAddress> addresses) {
        this.addresses = addresses;
    }

    @NonNull
    @Override
    public TransationRecoderItem onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new TransactionRecoderAdapter.TransationRecoderItem(mLayoutInflater.inflate(R.layout.item_coin_all_transation, parent, false));
    }

    @Override
    public void onBindViewHolder(@NonNull TransationRecoderItem holder, int position) {

    }

    @Override
    public int getItemCount() {
//        return addresses.size();
        return 0;
    }

    class TransationRecoderItem extends RecyclerView.ViewHolder {



        public TransationRecoderItem(View itemView) {
            super(itemView);
            ButterKnife.bind(this,itemView);
        }


    }


}
